package com.ming.config;

import com.ming.util.JwtUtils;
import com.ming.util.SecurityUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;

import jakarta.annotation.PostConstruct;

/**
 * SecurityUtils配置类
 * 用于初始化SecurityUtils中的JwtUtils
 *
 * @author ming
 * @version 1.0
 */
@Configuration
public class SecurityUtilsConfig {

    @Autowired
    private JwtUtils jwtUtils;

    @PostConstruct
    public void init() {
        SecurityUtils.setJwtUtils(jwtUtils);
    }
}